using System;
using System.Windows;
using System.Windows.Controls;
namespace MicroMsg.UI.Util
{
	public class ProfileInfoItemBase : UserControl
	{
		public static DependencyProperty InfoDataProperty = DependencyProperty.Register("InfoData", typeof(ProfileInfoData), typeof(ProfileInfoItemBase), new PropertyMetadata(null, new PropertyChangedCallback(ProfileInfoItemBase.OnInfoDataPropertyChanged)));
		public ProfileInfoData InfoData
		{
			get
			{
				return (ProfileInfoData)base.GetValue(ProfileInfoItemBase.InfoDataProperty);
			}
			set
			{
				base.SetValue(ProfileInfoItemBase.InfoDataProperty, value);
			}
		}
		public ProfileInfoItemBase()
		{
			base.set_Margin(new Thickness(0.0, 20.0, 0.0, 0.0));
		}
		private static void OnInfoDataPropertyChanged(DependencyObject dependencyObject_0, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs_0)
		{
			if (dependencyPropertyChangedEventArgs_0.get_Property() == ProfileInfoItemBase.InfoDataProperty)
			{
				(dependencyObject_0 as ProfileInfoItemBase).InfoDataPropertyChanged(dependencyPropertyChangedEventArgs_0);
			}
		}
		private void InfoDataPropertyChanged(DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs_0)
		{
			if (dependencyPropertyChangedEventArgs_0.get_OldValue() != dependencyPropertyChangedEventArgs_0.get_NewValue())
			{
				this.RefreshItem();
			}
		}
		protected virtual void RefreshItem()
		{
		}
		public virtual void Collect()
		{
		}
	}
}
